package com.am.link;

import com.am.cell.ICell;
import com.am.config.Configuration;

public class HippoCampus extends AMLink implements IAMLink {
	private int stime = 0;
	
	public HippoCampus(ICell src, ICell des){
		super(Configuration.HIPPOCAMPUS_INIT_RESISTANCE, src, des);
	}

	@Override
	public void strengthenOnce() {
		stime ++;
		//M=n(1-1.65^(-x))
		double t = Math.pow(Configuration.HIPPOCAMPUS_CONST_VALUE, -stime);
		double d = Configuration.HIPPOCAMPUS_FACTOR * (1-t);
		reduceResistance(new Double(d).intValue());
	}
}
